package com.tiny.diamond.internal.util.json;

/**
 * @Author: zhumenglong
 * @Description:
 * @Date: Created in 16:00 2018/3/1
 */
public class ExceptionErrorListener extends BufferErrorListener {

    public void error(String type, int col) {
        super.error(type, col);
        throw new IllegalArgumentException(buffer.toString());
    }

}
